Truncate Text
(13 actions, 10 KB)
0 Get Dictionary from
[Shortcut Input]
»
1
2
5
1 Split Text
[0 Dictionary
.text
]
by
Every Character
»
3
7
2 Get Numbers from
[0 Dictionary
.numCharLimit
]
»
4
7
3 Count
Items
in
[1 Split Text]
»
4 If
[3 Count]
<=
[2 Numbers]
5 Get Text from
[0 Dictionary
.text
]
6 Otherwise
7 Get
Items in Range
1
to
[2 Numbers]
from List
[1 Split Text]
»
8 Combine Text
[7 Item from List]
with
Custom
»
9 Actions > GetSentencesFromTextIntent »
text
:
[8 Combined Text]
10 Combine Text
[9 Sentences]
with New Lines
11 End If
➔ truncatedText
»
12 Stop and Output
[11 truncatedText]